import CFArrayUtils from './Array';
import CFObjectUtils from './Object';
import CFBrowserUtils from './Browser';
import CFMathUtils from './Math';
import CFCaculateUtils from './Caculate';

const CFArray = new CFArrayUtils();
const CFObject = new CFObjectUtils();
const CFBrowser = new CFBrowserUtils();
const CFMath = new CFMathUtils();
const CFCaculate = new CFCaculateUtils();

/**
 * 查看版本信息
 * @returns {Object} 版本信息
 */
const getVersion = () => {
  return {
    author: 'JiexC0la',
    description: '常用函数封装',
    version: 'v1.0.0',
    gitLink: 'https://gitee.com/jiexc0la/CommonFrame'
  };
};

export default {
  getVersion,
  CFArray,
  CFObject,
  CFBrowser,
  CFMath,
  CFCaculate
};

export { CFArray, CFObject, CFBrowser, CFMath, CFCaculate };
